home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / tiff / imerr.h < prev    next >
Text File  |  1988-11-02  |  3KB  |  41 lines

  1. /*********************************************************************
  2.  * ImErr.h -- imaging error definitions.  
  3.  *
  4.  * made this version on 88-10-31
  5.  */
  6. #define IM_BASE    0
  7.  
  8. #define    IM_BUG                (IM_BASE +  1)    /* supposedly impossible situation - almost certainly my problem */
  9. #define    IM_MEM_FULL            (IM_BASE +  2)    /* can't allocate enough memory */
  10. #define    IM_MEM_FAIL            (IM_BASE +  3)    /* can't lock allocated memory */
  11. #define    IM_NO_WIDTH            (IM_BASE +  4)    /* no ImageWidth */
  12. #define    IM_NO_LENGTH        (IM_BASE +  5)    /* no ImageLength */
  13. #define    IM_NO_OFFSETS        (IM_BASE +  6)    /* no StripOffsets */
  14. #define    IM_BAD_SPP            (IM_BASE +  7)    /* unsupported SamplesPerPixel */
  15. #define    IM_BAD_COMPR        (IM_BASE +  8)    /* unsupported compression type */
  16. #define    IM_BAD_PHOTO        (IM_BASE +  9)    /* unsupported photometricInterpretation */
  17. #define    IM_BAD_PREDICT        (IM_BASE + 10)    /* unsupported Predictor */
  18. #define    IM_BAD_PLANAR        (IM_BASE + 11)    /* unsupported PlanarConfiguration */
  19. #define    IM_BAD_BPS            (IM_BASE + 12)    /* unsupported BitsPerSample */
  20. #define    IM_BAD_NUM_OFF        (IM_BASE + 13)    /* wrong number of StripOffsets */
  21. #define    IM_UNK_FORMAT        (IM_BASE + 14)    /* unknown format */
  22. #define    IM_BAD_FILLORDER    (IM_BASE + 15)    /* unsupported FillOrder */
  23. #define    IM_BAD_WIDTH        (IM_BASE + 16)    /* bad ImageWidth - like 0 */
  24. #define    IM_BAD_LENGTH        (IM_BASE + 17)    /* bad ImageLength - like 0 */
  25. #define    IM_PRED_MISMATCH    (IM_BASE + 18)    /* cannot use this predictor with this bit depth */
  26.  
  27. #define    IM_FADING_COMPR        (IM_BASE + 19)    /* this compression type is not recommended */
  28. #define    IM_BAD_TTYPE        (IM_BASE + 20)    /* bad tiff type (not BYTE or ASCII or ...) */
  29. #define    IM_BAD_NUM_BITS        (IM_BASE + 21)    /* wrong number of BitsPerSample values */
  30. #define    IM_LARGE_STRIP        (IM_BASE + 22)    /* the strip is larger than the recommended 10K */
  31. #define    IM_BAD_NUM_COUNTS    (IM_BASE + 23)    /* wrong number of StripByteCounts */
  32. #define    IM_NO_BYTECOUNTS    (IM_BASE + 24)    /* no StripByteCounts */    /* fatal if LZW */
  33. #define    IM_BAD_NEXT_IFD        (IM_BASE + 25)    /* the (2nd) next-ifd-pointer points past EOF */
  34. #define    IM_PB_BITSNOTONE    (IM_BASE + 26)    /* PackBits: bit depth is greater than 1 */
  35. #define    IM_NO_PHOTO            (IM_BASE + 27)    /* no PhotometricInterpretation field */
  36. #define    IM_FADING_BITDEPTH    (IM_BASE + 28)    /* not-recommended bit depth (probably 6) */
  37. #define    IM_BAD_ROWSPERSTRIP    (IM_BASE + 29)    /* bad RowsPerStrip (probably 0) */
  38. #define    IM_NO_COMPR            (IM_BASE + 30)    /* uncompressed */
  39. #define IM_COLOR_CLASH        (IM_BASE + 31)    /* PhotometricInterpretation does not match SamplesPerPixel */
  40. #define    IM_NO_NEWSUBFILETYPE (IM_BASE + 32)    /* no NewSubfileType */
  41.